<%--
    Document   : loancollection
    Created on : Apr 6, 2011, 3:37:32 PM
    Author     : Dine
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
    <head>
        <sj:head jqueryui="true" jquerytheme="south-street" compressed="false"/>
        <jsp:include page="WEB-INF/fragments/globalHead.html"/>
        <title>Cashmate <s:property value="#session.branch.branchname"/> - Loan Release</title>
        <style type="text/css">
            
        </style> <!--main.jsp css-->
        <script type="text/javascript">
            
        </script> <!--main.jsp script-->
    </head>
    <body>

        <c:if test="${sessionScope.auth == null || sessionScope.auth == false}">
            <%--<jsp:forward page="index.jsp?auth=none"/>--%>
        </c:if>
        <s:div id="bodyContainer">
            <s:div id="logoContainer" cssClass="ui-widget-content ui-corner-all">
                <s:include value="WEB-INF/fragments/banner.jsp">
                    <s:param name="branch" value="#session.branch.branchname" />
                </s:include>
            </s:div>
            <jsp:include page="WEB-INF/fragments/top.jsp"/>
            <jsp:include page="WEB-INF/fragments/mainMenu.jsp?menu=Loan"/>
            <jsp:include page="WEB-INF/fragments/left.jsp?type=loan&innerType=loancheckregister&select1=subMenuLoanCheckRegister&select2=loanCheckRegisterSubMenu_${param.cat}"/>

            <s:div id="contentContainer" cssClass="ui-widget-content ui-corner-all">
                <h1 id="contentHeader" class="ui-state-default ui-corner-all"></h1>
                <s:div id="theContent">                    
                    <c:if test="${param.cat == 'check'}">
                        <script type="text/javascript">
                            $('h1#contentHeader').html('<span id="level1">Check Register</span>');
                        </script>
                        <c:choose>
                            <c:when test="${param.selected == null}">
                                <jsp:include page="WEB-INF/fragments/checks.jsp"/>
                            </c:when>
                            <c:otherwise>
                                <c:set var="selected" value="${param.selected}" scope="session" />
                                <jsp:include page="WEB-INF/fragments/register.jsp"/>
                            </c:otherwise>
                        </c:choose>
                        
                    </c:if>
                      
                </s:div>

            </s:div>
            <jsp:include page="WEB-INF/fragments/bottom.jsp"/>
        </s:div>
    </body>
</html>
